import { ApiProperty } from '@nestjs/swagger'
import { IsNotEmpty } from 'class-validator'

// 用户注册请求vo
export class UserRegisterReqVo {
  @ApiProperty({ description: '手机号' })
  mobile: string

  @ApiProperty({ description: '邮箱' })
  email: string

  @ApiProperty({ description: '用户昵称' })
  @IsNotEmpty({ message: '用户昵称必填' })
  nickName: string

  @ApiProperty({ description: '用户头像' })
  avatar: string

}